
class HospitalDataList {
  int? code;
  String? msg;
  List<HospitalData>? data;

  HospitalDataList({this.code, this.msg, this.data});

  HospitalDataList.fromJson(Map<String, dynamic> json) {
    if(json["code"] is int) {
      code = json["code"];
    }
    if(json["msg"] is String) {
      msg = json["msg"];
    }
    if(json["data"] is List) {
      data = json["data"] == null ? null : (json["data"] as List).map((e) => HospitalData.fromJson(e)).toList();
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["code"] = code;
    _data["msg"] = msg;
    if(data != null) {
      _data["data"] = data?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}

class HospitalData {
  int? id;
  String? createTime;
  String? createBy;
  String? delFlag;
  String? hospNo;
  String? hospName;
  String? shortName;
  dynamic alias;
  String? province;
  String? city;
  String? area;
  String? address;
  String? grade;
  String? introduction;
  String? scale;
  dynamic hospType;
  dynamic tag;
  double? longitude;
  double? latitude;
  String? mainDepartments;
  String? betterDepartments;
  String? managerName;
  String? managerDuty;
  String? managerPhone;
  String? contactName;
  String? contactDuty;
  String? contactPhone;
  String? avatarUrl;
  int? deptId;

  HospitalData({this.id, this.createTime, this.createBy, this.delFlag, this.hospNo, this.hospName, this.shortName, this.alias, this.province, this.city, this.area, this.address, this.grade, this.introduction, this.scale, this.hospType, this.tag, this.longitude, this.latitude, this.mainDepartments, this.betterDepartments, this.managerName, this.managerDuty, this.managerPhone, this.contactName, this.contactDuty, this.contactPhone, this.avatarUrl, this.deptId});

  HospitalData.fromJson(Map<String, dynamic> json) {
    if(json["id"] is int) {
      id = json["id"];
    }
    if(json["createTime"] is String) {
      createTime = json["createTime"];
    }
    if(json["createBy"] is String) {
      createBy = json["createBy"];
    }
    if(json["delFlag"] is String) {
      delFlag = json["delFlag"];
    }
    if(json["hospNo"] is String) {
      hospNo = json["hospNo"];
    }
    if(json["hospName"] is String) {
      hospName = json["hospName"];
    }
    if(json["shortName"] is String) {
      shortName = json["shortName"];
    }
    alias = json["alias"];
    if(json["province"] is String) {
      province = json["province"];
    }
    if(json["city"] is String) {
      city = json["city"];
    }
    if(json["area"] is String) {
      area = json["area"];
    }
    if(json["address"] is String) {
      address = json["address"];
    }
    if(json["grade"] is String) {
      grade = json["grade"];
    }
    if(json["introduction"] is String) {
      introduction = json["introduction"];
    }
    if(json["scale"] is String) {
      scale = json["scale"];
    }
    hospType = json["hospType"];
    tag = json["tag"];
    if(json["longitude"] is double) {
      longitude = json["longitude"];
    }
    if(json["latitude"] is double) {
      latitude = json["latitude"];
    }
    if(json["mainDepartments"] is String) {
      mainDepartments = json["mainDepartments"];
    }
    if(json["betterDepartments"] is String) {
      betterDepartments = json["betterDepartments"];
    }
    if(json["managerName"] is String) {
      managerName = json["managerName"];
    }
    if(json["managerDuty"] is String) {
      managerDuty = json["managerDuty"];
    }
    if(json["managerPhone"] is String) {
      managerPhone = json["managerPhone"];
    }
    if(json["contactName"] is String) {
      contactName = json["contactName"];
    }
    if(json["contactDuty"] is String) {
      contactDuty = json["contactDuty"];
    }
    if(json["contactPhone"] is String) {
      contactPhone = json["contactPhone"];
    }
    if(json["avatarUrl"] is String) {
      avatarUrl = json["avatarUrl"];
    }
    if(json["deptId"] is int) {
      deptId = json["deptId"];
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["id"] = id;
    _data["createTime"] = createTime;
    _data["createBy"] = createBy;
    _data["delFlag"] = delFlag;
    _data["hospNo"] = hospNo;
    _data["hospName"] = hospName;
    _data["shortName"] = shortName;
    _data["alias"] = alias;
    _data["province"] = province;
    _data["city"] = city;
    _data["area"] = area;
    _data["address"] = address;
    _data["grade"] = grade;
    _data["introduction"] = introduction;
    _data["scale"] = scale;
    _data["hospType"] = hospType;
    _data["tag"] = tag;
    _data["longitude"] = longitude;
    _data["latitude"] = latitude;
    _data["mainDepartments"] = mainDepartments;
    _data["betterDepartments"] = betterDepartments;
    _data["managerName"] = managerName;
    _data["managerDuty"] = managerDuty;
    _data["managerPhone"] = managerPhone;
    _data["contactName"] = contactName;
    _data["contactDuty"] = contactDuty;
    _data["contactPhone"] = contactPhone;
    _data["avatarUrl"] = avatarUrl;
    _data["deptId"] = deptId;
    return _data;
  }
}